package com.ruoyi.pms.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.TreeEntity;

/**
 * 商品类别对象 pms_product_category
 * 
 * @author yf
 * @date 2022-02-08
 */
public class PmsProductCategory extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 最后更新人 */
    @Excel(name = "最后更新人")
    private Long modifyBy;

    /** 最后更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyTime;

    /** 备注 */
    @Excel(name = "备注")
    private String descript;

    /** 图标 */
    @Excel(name = "图标")
    private String icon;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer isDelete;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 父类别 */
    @Excel(name = "父类别")
    private Long pid;

    /** 是否显示在首页 */
    @Excel(name = "是否显示在首页")
    private Integer showIndex;

    /** 顺序 */
    @Excel(name = "顺序")
    private Long sort;

    /** 链接地址 */
    @Excel(name = "链接地址")
    private String url;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setModifyBy(Long modifyBy) 
    {
        this.modifyBy = modifyBy;
    }

    public Long getModifyBy() 
    {
        return modifyBy;
    }
    public void setModifyTime(Date modifyTime) 
    {
        this.modifyTime = modifyTime;
    }

    public Date getModifyTime() 
    {
        return modifyTime;
    }
    public void setDescript(String descript) 
    {
        this.descript = descript;
    }

    public String getDescript() 
    {
        return descript;
    }
    public void setIcon(String icon) 
    {
        this.icon = icon;
    }

    public String getIcon() 
    {
        return icon;
    }
    public void setIsDelete(Integer isDelete) 
    {
        this.isDelete = isDelete;
    }

    public Integer getIsDelete() 
    {
        return isDelete;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
    public void setShowIndex(Integer showIndex) 
    {
        this.showIndex = showIndex;
    }

    public Integer getShowIndex() 
    {
        return showIndex;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("modifyBy", getModifyBy())
            .append("modifyTime", getModifyTime())
            .append("descript", getDescript())
            .append("icon", getIcon())
            .append("isDelete", getIsDelete())
            .append("name", getName())
            .append("pid", getPid())
            .append("showIndex", getShowIndex())
            .append("sort", getSort())
            .append("url", getUrl())
            .toString();
    }
}
